{% extends "nav.html" %}
{% block little %}存储搜索查看{% endblock %}
{% block content %}
    <!-- Main Content -->
    <div class="container-fluid row">
        <div class="side-body">
            <div class="page-title">
                <p class="text-center">{{ status }}</p>
                <span class="title">设备主机信息查看</span>
                <table class="table table-bordered">
                    <tr class="success">
                        <td>设备厂商</td>
                        <td>设备型号</td>
                        <td>设备SN</td>
                        <td>设备IP</td>
                        <td>所属业务</td>
                        <td>所属部门</td>
                        <td>wwn:</td>
                    </tr>
                    {% for h in host %}
                        <tr>
                            <td>{{ h.prodname }}</td>
                            <td>{{ h.prodect }}</td>
                            <td>{{ h.sn }}</td>
                            <td>{{ h.ip }}</td>
                            <td>{{ h.app }}</td>
                            <td>{{ h.apptype }}</td>
                            <td>
                                {% for w in h.wwn_set.all %}
                                    {{ w.wwn }}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endfor %}
                </table>
            </div>
            <div class="page-title">
                <span class="title">设备光交信息查看</span>
                <table class="table table-bordered">
                    <tr class="info">
                        <td>光交品牌</td>
                        <td>光交型号</td>
                        <td>光交SN</td>
                        <td>光交IP</td>
                        <td>所属端口</td>
                        <td>端口发送流量</td>
                        <td>端口接收流量</td>
                        <td>端口接收光信号</td>
                        <td>端口发送光信号</td>
                    </tr>
                    {% for z in wwn %}
                        <tr>
                            <td>{{ z.Sanport_wwn.san.prodname}}</td>
                            <td>{{  z.Sanport_wwn.san.prodect }}</td>
                            <td>{{  z.Sanport_wwn.san.sn }}</td>
                            <td>{{  z.Sanport_wwn.san.ip }}</td>
                            <td>{{ z.Sanport_wwn.index}}-{{ z.Sanport_wwn.slot }}-{{ z.Sanport_wwn.port }}</td>
                            <td>{{ z.Sanport_wwn.tx}}</td>
                            <td>{{ z.Sanport_wwn.rx}}</td>
                            <td>{{ z.Sanport_wwn.RX_Power}}</td>
                            <td>{{ z.Sanport_wwn.TX_Power}}</td>
                        </tr>
                    {% endfor %}
                </table>
            </div>
            <div class="page-title row">
                <span class="title">存储信息查看</span>
                <table class="table table-bordered col-lg-6">
                    <tr class="warning">
                        <td>存储品牌</td>
                        <td>存储型号</td>
                        <td>存储SN</td>
                        <td>存储IP</td>
{#                        <td>所属前端口</td>#}
{#                        <td>发送流量</td>#}
{#                        <td>接收流量</td>#}
{#                        <td>发送光信号</td>#}
{#                        <td>接收光信号</td>#}
                    </tr>
                    {% for s in wwn %}
                        {% for h in s.SThost.all %}
                        <tr>
                            <td>{{ h.storage.ST_prodname }}</td>
                            <td>{{ h.storage.ST_prodect }}</td>
                            <td>{{ h.storage.ST_sn }}</td>
                            <td>{{ h.storage.ST_ip }}</td>
                        </tr>
                            {% endfor %}
                    {% endfor %}
                </table>
            </div>
            <div class="page-title">
                <span class="title">业务信息查看</span>
                <table class="table table-bordered">
                    <tr class="danger">
                        <td>需求部门</td>
                        <td>需求时间</td>
                        <td>需求容量</td>
                        <td>完成时间</td>
                        <td>所属业务</td>
                    </tr>
                </table>
            </div>
            <div class="page-title">
                <span class="title">故障信息查看</span>
                <table class="table table-bordered">
                    <tr class="active">
                        <td>故障时间</td>
                        <td>故障型号</td>
                        <td>完成时间</td>
                    </tr>
                    <tr>
                        <td>2017/11/5</td>
                        <td>cunc</td>
                        <td>2017/11/26</td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            dfdsf
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>

{% endblock %}
{% block js %}

{% endblock %}